package com.bruce.starts.demo.thread.lock;

public class Writer extends Thread{
    private Buffer buffer;

    public Writer(Buffer buffer) {
        this.buffer = buffer;
    }

    @Override
    public void run() {
        buffer.write();
    }
}
